import { ObjectId } from 'mongodb';
import { Gender } from './../../utils/Gender';
import { WsConnection } from 'tsrpc';
import { ServiceType } from '../protocols/serviceProto';
export interface users {
    _id: ObjectId
    name: string
    password?: string
    role: string
    email: string
    school: string
    number: string
    gender: number
    portrait: string
}

export interface liveStudent extends users{
    watchingTime:number
    status:'offline' | 'online' //online | offline
    connection:WsConnection<ServiceType> | undefined
}